home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / FixMath.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-13  |  1010 b   |  49 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 8:55 PM
  4.     FixMath.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1985-1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __FIXMATH__
  15. #define __FIXMATH__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. pascal Fract Fix2Frac(Fixed x)
  25.     = 0xA841;
  26. pascal long Fix2Long(Fixed x)
  27.     = 0xA840;
  28. pascal Fixed FixATan2(long x,long y)
  29.     = 0xA818;
  30. pascal Fixed Long2Fix(long x)
  31.     = 0xA83F;
  32. pascal Fixed Frac2Fix(Fract x)
  33.     = 0xA842;
  34. pascal extended Frac2X(Fract x);
  35. pascal extended Fix2X(Fixed x); 
  36. pascal Fixed X2Fix(extended x); 
  37. pascal Fract X2Frac(extended x);
  38. pascal Fract FracMul(Fract x,Fract y);
  39. pascal Fixed FixDiv(Fixed x,Fixed y);
  40. pascal Fract FracDiv(Fract x,Fract y);
  41. pascal Fract FracSqrt(Fract x); 
  42. pascal Fract FracSin(Fixed x);
  43. pascal Fract FracCos(Fixed x);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif
  49.